package Drink.service;

import Drink.dao.DrinkDaoImpl;
import Snacks.dao.SnacksDao;
import Snacks.entiy.Snacks;
import Snacks.sevise.SnacksServise;

import java.util.List;

public class DrinkServiceImpl implements SnacksServise {
    SnacksDao dao=new DrinkDaoImpl();
    @Override
    public int deletInfor(Snacks s) {
        return dao.deletInfor(s);
    }

    @Override
    public List<Snacks> getLike(String name) {
        return dao.getLike(name);
    }

    @Override
    public int addInfor(Snacks snacks) {
        return dao.addInfor(snacks);
    }

    @Override
    public int getCount() {
        return dao.getCount();
    }

    @Override
    public List<Snacks> getFyList(int page, int pagesize) {
        return dao.getFyList(page,pagesize);
    }

    @Override
    public int upataInfor(Snacks s) {
        return dao.upataInfor(s);
    }

    @Override
    public int upataSInfor(Snacks s) {
        return dao.upataSInfor(s);
    }
    @Override
    public int upataRemenn(Snacks s) {
        return  dao.upataRemenn(s);
    }

    @Override
    public int upataXRemenn(Snacks s) {
        return dao.upataXRemenn(s);
    }
}
